package com.showcai.controller.projectileFrame;

import com.showcai.controller.base.BaseController;
import com.showcai.module.ProjectileFrame;
import com.showcai.result.ResultObj;
import com.showcai.result.ReturnCode;
import com.showcai.service.ProjectileFrameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@RequestMapping("/projectileFrame")
@Controller
public class ProjectileFrameContorller extends BaseController {

    @Autowired
    ProjectileFrameService projectileFrameService;


    @RequestMapping(value = "/getProjectileFrameStatus")
    @ResponseBody
    public String getProjectileFrameStatus() {
        ProjectileFrame projectileFrame = projectileFrameService.selectprojectileFrame();
        ResultObj resultObj = new ResultObj();
        resultObj.setData(projectileFrame);
        resultObj.setCode(ReturnCode.SUCCESS.getCode());
        resultObj.setMsg(ReturnCode.SUCCESS.getMsg());
        return resultObj.toJson();
    }
}
